# Copyright (C) Kumo inc. and its affiliates.
# Author: Jeff.li lijippy@163.com
# All rights reserved.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https:#www.gnu.org/licenses/>.
#

add_library(pollux_aggregation_result_verifier MinMaxByResultVerifier.cpp)

target_link_libraries(
  pollux_aggregation_result_verifier
  pollux_core
  pollux_aggregation_fuzzer_base
  pollux_exec_test_lib
  pollux_vector
  pollux_vector_test_lib)

add_executable(pollux_aggregation_fuzzer_test AggregationFuzzerTest.cpp)

target_link_libraries(
  pollux_aggregation_fuzzer_test
  pollux_aggregation_fuzzer
  pollux_aggregation_fuzzer_base
  pollux_aggregation_result_verifier
  pollux_aggregates
  pollux_window
  pollux_vector_fuzzer
  pollux_vector_test_lib
  GTest::gtest
  GTest::gtest_main)

# Window Fuzzer
add_executable(pollux_window_fuzzer_test WindowFuzzerTest.cpp)

target_link_libraries(
  pollux_window_fuzzer_test
  pollux_window_fuzzer
  pollux_fuzzer_util
  pollux_aggregates
  pollux_window
  pollux_expression_test_utility
  pollux_functions_prestosql
  pollux_vector_test_lib
  GTest::gtest
  GTest::gtest_main)

# Writer Fuzzer
add_executable(pollux_writer_fuzzer_test WriterFuzzerTest.cpp)

target_link_libraries(
  pollux_writer_fuzzer_test
  pollux_writer_fuzzer
  pollux_fuzzer_util
  GTest::gtest
  GTest::gtest_main)
